all: som.so clean

som.so: som.o
	@ gcc -shared -o install/som.so install/som.o -I/usr/include/mysql -lmysqlclient -L/usr/lib64/mysql

som.o:  install/som.c
	@ gcc -fPIC -c install/som.c -I/usr/include/mysql -lmysqlclient -L/usr/lib64/mysql -o install/som.o
clean:  
	@rm -rf install/som.o 



